<?php
defined('_JEXEC') or die;

jimport('joomla.application.component.controllerform');
class ExercisesControllerExercises extends JControllerForm
{
    public function getTerm(){
       $mainframe = JFactory::getApplication();
       $article = JRequest::getVar('termconditions');
       $model = $this->getModel();
       $article = $model->getTerm($article);
       $html = '';
       if($article){
           $html .= '<div id="mask" onclick="removemask(this);">';
           $html .= '<div class="term-container"><span class="close" onclick="removemask('."'#mask'".');"></span>';
           $html .= '<div class="term-container-inner"><h3 class="title">'.$article->title.'<h3>'.$article->introtext.'</div>';
           $html .= '</div></div>';
       }
       echo $html;
       $mainframe->close();
    }
}
